package ddd;
import ddd.constant.MonsterEnum;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/5/24 15:46
 */
public class Monster {

    private Monster id;
    private MonsterEnum monsterClass; // enum
    private int health;
    private boolean isAlive;
    private Transform position = Transform.ORIGIN;
    private Vector velocity = Vector.ZERO;

    public Monster(MonsterEnum monsterClass, int health) {
        this.monsterClass = monsterClass;
        this.health = health;
        this.id = this;
        this.isAlive = true;
    }

    public Monster getId() {
        return id;
    }


    public int getHealth() {
        return health;
    }


    public boolean isAlive() {
        return isAlive;
    }

    public void setAlive(boolean alive) {
        isAlive = alive;
    }

    public MonsterEnum getMonsterClass() {
        return monsterClass;
    }

//    public Health getHealth() {
//        return health;
//    }
}
